<?php 

$paths = glob('./Upload/*');

// var_dump($paths);
	



 ?>


<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<form action="./imgUpload.php" method="post" enctype="multipart/form-data">
		<!-- <input type="hidden" name="MAX_FILE_SIZE" value="100000"> -->
		<input type="file"  name="xbs[]" multiple="multiple">
		
		<input type="submit" value="上传">
	</form>

	<table border="1">
			<tr>
				<td>缩略图</td>
				<td>文件名</td>
				<td>大小</td>
				<td>上传时间</td>
				<td>操作</td>
			</tr>
		<?php foreach ($paths as  $v) { ?>
			<tr>
				<td><img src="<?php echo $v; ?>" alt="" width='80px'></td>
				<td><?php echo basename($v); ?></td>
				<td><?php echo filesize($v) ?></td>
				<td>上传时间</td>
				<td>
					<!-- <a href="./del.php">删除</a> -->
					<!-- <a href="./down.php">下载</a> -->
				</td>
			</tr>
		<?php } ?>
		
	</table>
</body>
</html>